package com.syedu.day15.homework;

/**
 * description：
 * @author Administrator
 * @date 2022/4/1 9:06
 */
public class Exercise1 {
    public static void main(String[] args) {
        new Thread(() -> {
            for (int i = 1; i <= 26; i++) {
                System.out.print(i * 2 - 1);
                System.out.print(i * 2);
                try {
                    Thread.sleep(500);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();

        try {
            Thread.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        new Thread(() -> {
            for (char c = 'A'; c <= 'Z'; c++) {
                System.out.print(c);
                try {
                    Thread.sleep(501);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }).start();

    }

}